<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css'>
  <link rel="stylesheet" href="style.css">
</head>

<body>
  <div class="card">
    <div class="user">
      <div class="img_box">
        <img src="bg.jpg" />
      </div>
      <div class="content">
        <h2>
          Someone Famous
          <br>
          <span>Product Designer</span>
        </h2>
      </div>
      <span class="toggle"></span>
    </div>
    <ul class="contact">
      <li style="--clr: #c71610;--i:0">
        <a href="#">
          <div class="icon_box">
            <i class="fa-solid fa-envelope"></i>
          </div>
          <p>someone@email.com</p>
        </a>
      </li>
      <li style="--clr: #171515;--i:1">
        <a href="#">
          <div class="icon_box">
            <i class="fa-brands fa-weixin"></i>
          </div>
          <p>18372876781</p>
        </a>
      </li>
      <li style="--clr: #0a66c2;--i:2">
        <a href="#">
          <div class="icon_box">
            <i class="fa-brands fa-qq"></i>
          </div>
          <p>38572913</p>
        </a>
      </li>
    </ul>
  </div>
</body>
<script>
  let toggle = document.querySelector('.toggle')
  let card = document.querySelector('.card')

  toggle.onclick = () => {
    card.classList.toggle('active')
  }
</script>

</html>